{extend name="common/layout" /}

{block name="title"}首页{/block}
{block name="style"}{/block}

{block name="content"}
	
<link rel="stylesheet" href="__SHOP_DEFAULT__/custom/css/font-family.css">
<link rel="stylesheet" href="__SHOP_DEFAULT__/custom/css/layui.css">
<link rel="stylesheet" href="__SHOP_DEFAULT__/custom/iconfont.css">
<link rel="stylesheet" href="__SHOP_DEFAULT__/custom/css/info.css">
<link rel="stylesheet" href="__SHOP_DEFAULT__/custom/css/market.css">

<div class="container">
	<div class="sitenav-bar" style="line-height: 40px;margin-top: 5px;">
		<div class="sitenav">
        	当前位置：
        	<a href="{:url('cms/Cmsmarket/index')}">茶叶行情</a>
        	{if !empty($article_detail)}
        		 > <a href="{:url('cms/Cmsmarket/market_list',array('class_id'=>$article_detail['article_class_id_sub']['class_id']))}">{$article_detail['article_class_id_sub']['class_name']}</a>
        		 > {$article_detail['article_title']}
        	{/if}
       	</div>
    </div>
    <div class="info-list-left full">
        <div class="info-title">
            <div class="title-icon">
                <img src="__SHOP_DEFAULT__/custom/images/icon/info-title.png" alt="">
                <?php echo $article_detail['article_class_id_sub']['class_name']; ?>
            </div>
        </div>
        
        <div class="text-content">
            <div class="text-title">
                <h2><?php echo $article_detail['article_title'];?></h2>
                <div class="media-details">
                	<span>
                		作者：<?php echo empty($article_detail['article_author'])?'匿名':$article_detail['article_author'];?>
                		
                	</span> 
                	<span>
                		出处：
                		<?php echo empty($article_detail['article_origin'])?sysconf('site_name'):$article_detail['article_origin'];?>
                	</span>
                	<span class="date"><?php echo date('Y-m-d',$article_detail['article_publish_time']);?></span> 
                	<span class="PV" title="<?php echo $lang['cms_text_view_count'];?>">
                		<i></i>浏览
                		<em>(<b><?php echo $article_detail['article_click'];?></b>)</em>
                	</span> 
                	<span style="cursor: pointer;" id="btn_sns_share" data-title="<?php echo $article_detail['article_title'];?>" data-image="{$article_detail['article_attachment_path']}/{$article_detail['article_image']}" data-publisher="<?php echo empty($article_detail['article_author'])?'匿名':$article_detail['article_author'];?>" data-origin="<?php echo empty($article_detail['article_origin'])?sysconf('site_name'):$article_detail['article_origin'];?>" data-publish_time="<?php echo date('Y-m-d',$article_detail['article_publish_time']);?>" data-abstract="<?php echo $article_detail['article_abstract'];?>" class="cms-share" title="分享">
                		<i></i><font>分享</font>
                		<em>(<b><?php echo $article_detail['article_share_count'];?></b>)</em>
                	</span> 
                </div>
                
            </div>
            
            <!-- 正文 -->
            <div class="text-text">
                <?php echo $article_detail['article_content'];?>
            </div>
            <div class="text-label">
            	<p class="left">标签：
	                <?php if(!empty($article_detail['article_keyword'])) { ?>
		          	<?php $article_keyword_array = explode(',', $article_detail['article_keyword']);?>
		          	<?php foreach ($article_keyword_array as $value) {?>
		          		<a href="{:url('article_search',array('keyword'=>$value))}" target="_blank"><?php echo $value;?></a>
		          	<?php } ?>
		          	<?php } ?>
               	</p>
            </div>
            
            <div class="clearfix"></div>
            <!-- 相关文章 -->
            <div class="text-referral">
        
		        <?php if(!empty($article_link_list)) { $i = 0;?>
			        <h2>相关推荐</h2>
			        <div class="text-referral-left">
				        <ul>
				          	<?php foreach($article_link_list as $value) { $i++;?>
				          		<?php if($i >6){break;}?>
				          		<li>
				          			<a target="_blank" href="{:url('cms/Cmsmarket/market_detail',array('article_id'=>$value['article_id']))}">
				          				<i class="icon kangle-icon">&#xe63f;</i> <?php echo $value['article_title'];?> 
				          			</a> 
				          		</li>
				          	<?php } ?>
				        </ul>
			        </div>
	          	<?php } ?>
	          	
	          	<?php if(!empty($article_link_list)) { $i = 0;?>
			        <div class="text-referral-left">
				        <ul>
				          	<?php foreach($article_link_list as $value) { $i++;?>
				          		<?php if($i < 7){continue;}?>
				          		<?php if($i > 12){break;}?>
				          		<li>
				          			<a target="_blank" href="{:url('cms/Cmsmarket/market_detail',array('article_id'=>$value['article_id']))}">
				          				<i class="icon kangle-icon">&#xe63f;</i> <?php echo $value['article_title'];?> 
				          			</a> 
				          		</li>
				          	<?php } ?>
				        </ul>
			        </div>
	          	<?php } ?>
	          		
	          	<?php if(!empty($article_link_list)) { $i = 0; ?>
			        <div class="text-referral-left right">
				        <ul>
				          	<?php foreach($article_link_list as $value) { $i++;?>
				          		<?php if($i < 12){continue;}?>
				          		<?php if($i > 18){break;}?>
				          		<li>
				          			<a target="_blank" href="{:url('cms/Cmsmarket/market_detail',array('article_id'=>$value['article_id']))}">
				          				<i class="icon kangle-icon">&#xe63f;</i> <?php echo $value['article_title'];?> 
				          			</a> 
				          		</li>
				          	<?php } ?>
				        </ul>
			        </div>
	          	<?php } ?>
            	
            </div>
            <div class="clearfix"></div>
        </div>
    </div>
</div> 	
{include file="cms/cmsarticle/widget_sns_share" /}
	
{/block}